package com.itheima.service.impl;

import com.itheima.dao.UserDao;
import com.itheima.service.UserService;
import com.itheima.dao.impl.UserDaoImpl;
import com.itheima.domain.User;

import java.io.IOException;
import java.util.List;

public class UserServiceImpl implements UserService {
    private UserDao userDao = new UserDaoImpl();
    public List<User> findAll() throws IOException {
        List<User> all = userDao.findAll();
        return all;
    }
}
